package com.hellogood.yaohuo.shared.services;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.hellogood.yaohuo.shared.entity.Form;
import com.hellogood.yaohuo.shared.entity.Ziyou;
import com.hellogood.yaohuo.shared.entity.ZyForm;

@RemoteServiceRelativePath("ZiyouService")
public interface ZiyouService extends RemoteService {
	public static class Util {
		private static ZiyouServiceAsync instance;

		public static ZiyouServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(ZiyouService.class);
			}
			return instance;
		}
	}

	public List<Ziyou> getAllZiyou();

	public String createZiyou(Ziyou zy);

	public String modifyZiyou(Ziyou zy);
	
	public String getMaxCode();
	
	public String saveForm(ZyForm form, boolean isModify);
	
	public List<Form> searchZiyouFormByOrgCodeAndDate(String orgCode, int level, String startDate, String endDate, String rz);

	public Form getFormDetail(String billNo);

	public String deleteForm(String billNo);

	public String bankForm(List<String> bills);
	
	public String getLastZyBillNo();
}
